import React, { Component } from 'react'
import Item from './Item'
export default class List extends Component {
  render() {
    return (
      <div>
        <ul className="list-group">
          {this.props.todos.map((todo) => {
            return <Item key={todo.id} {...todo} />
          })}
        </ul>
      </div>
    )
  }
}
